package com.im.business.api.group;

import redis.clients.jedis.Jedis;

/**
 * jedis管理组件
 * @Created leijun
 * @Date 2021/10/6 8:40 上午
 */
public class JedisManager {

    private JedisManager() {}

    private static Jedis jedis = new Jedis("localhost", 6379);

    private static class Singleton {
        static JedisManager instance = new JedisManager();
    }

    public static JedisManager getInstance() {
        return Singleton.instance;
    }

    public static Jedis getJedis() {
        return jedis;
    }
}
